package paper;

public class SerialTest {

    public static void main(String[] args) {
        int length = 1000000000;
        long serialBegin = System.currentTimeMillis();
        long sum = 0;
        for (int i = 0; i < length; i++) {
            sum += 1;
            Demo demo = new Demo();
        }
        long serialEnd = System.currentTimeMillis();
        System.out.println(String.format("串行计算结果 %s 耗时 %sms", sum, serialEnd - serialBegin));
    }
}
